<?php


class SancionTable extends Doctrine_Table
{
    
    public static function getInstance()
    {
        return Doctrine_Core::getTable('Sancion');
    }
    
	public function findByPartidoId($partidoId)
    {
    	$q = $this->createQuery('a')->where('partido_id = '.$partidoId);
    	return $q->execute();
    }
}